package org.theonept.gwt.svg.widget;

import org.theonept.gwt.svg.dom.SVGDOMImpl;

import com.google.gwt.dom.client.Document;
import com.google.gwt.user.client.ui.ComplexPanel;
import com.google.gwt.user.client.ui.Widget;

public class SVGDocument extends ComplexPanel {

	public SVGDocument(Integer height, Integer width) {
		setElement(SVGDOMImpl.createSVGElement(Document.get(), width, height));
	}

	@Override
	public void add(Widget widget) {
		getElement().appendChild(widget.getElement());
	}
}
